
<%@ page import="com.ant.myagile.backlog.Issue" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'issue.label', default: 'Issue')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-issue" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-issue" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list issue">
			
				<g:if test="${issueInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="issue.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${issueInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.subject}">
				<li class="fieldcontain">
					<span id="subject-label" class="property-label"><g:message code="issue.subject.label" default="Subject" /></span>
					
						<span class="property-value" aria-labelledby="subject-label"><g:fieldValue bean="${issueInstance}" field="subject"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.description}">
				<li class="fieldcontain">
					<span id="description-label" class="property-label"><g:message code="issue.description.label" default="Description" /></span>
					
						<span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${issueInstance}" field="description"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="issue.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${issueInstance}" field="status"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.priority}">
				<li class="fieldcontain">
					<span id="priority-label" class="property-label"><g:message code="issue.priority.label" default="Priority" /></span>
					
						<span class="property-value" aria-labelledby="priority-label"><g:fieldValue bean="${issueInstance}" field="priority"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.assigned}">
				<li class="fieldcontain">
					<span id="assigned-label" class="property-label"><g:message code="issue.assigned.label" default="Assigned" /></span>
					
						<span class="property-value" aria-labelledby="assigned-label"><g:link controller="member" action="show" id="${issueInstance?.assigned?.id}">${issueInstance?.assigned?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.estimate}">
				<li class="fieldcontain">
					<span id="estimate-label" class="property-label"><g:message code="issue.estimate.label" default="Estimate" /></span>
					
						<span class="property-value" aria-labelledby="estimate-label"><g:fieldValue bean="${issueInstance}" field="estimate"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.pointRemains}">
				<li class="fieldcontain">
					<span id="pointRemains-label" class="property-label"><g:message code="issue.pointRemains.label" default="Point Remains" /></span>
					
						<g:each in="${issueInstance.pointRemains}" var="p">
						<span class="property-value" aria-labelledby="pointRemains-label"><g:link controller="pointRemain" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.remain}">
				<li class="fieldcontain">
					<span id="remain-label" class="property-label"><g:message code="issue.remain.label" default="Remain" /></span>
					
						<span class="property-value" aria-labelledby="remain-label"><g:fieldValue bean="${issueInstance}" field="remain"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.sprint}">
				<li class="fieldcontain">
					<span id="sprint-label" class="property-label"><g:message code="issue.sprint.label" default="Sprint" /></span>
					
						<span class="property-value" aria-labelledby="sprint-label"><g:link controller="sprint" action="index" id="${issueInstance?.sprint?.id}">${issueInstance?.sprint?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${issueInstance?.userStory}">
				<li class="fieldcontain">
					<span id="userStory-label" class="property-label"><g:message code="issue.userStory.label" default="User Story" /></span>
					
						<span class="property-value" aria-labelledby="userStory-label"><g:link controller="userStory" action="show" id="${issueInstance?.userStory?.id}">${issueInstance?.userStory?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${issueInstance?.id}" />
					<g:link class="edit" action="edit" id="${issueInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
